var XPLXN_GAME_ORIENTATION_LANDSCAPE = 0;
var XPLXN_GAME_ORIENTATION_PORTRAIT = 1;
var pageOrientation = XPLXN_GAME_ORIENTATION_LANDSCAPE;

Window_Width = 480
Window_Height = 288




function detectPageOrientation(){
	
    Window_Height = window.innerHeight;
	Window_Width =  window.innerWidth;
	console.log("new W width "+Window_Width);
	console.log("new W height "+Window_Height);
	if(Window_Width>Window_Height){
		pageOrientation = XPLXN_GAME_ORIENTATION_LANDSCAPE
	}else{
		pageOrientation = XPLXN_GAME_ORIENTATION_PORTRAIT 
	}   
}

